// number
package number

import (
	"math/rand"
	"time"
)

// GetRand 获取随机数
func GetRandNum(l int) int {
	if l <= 0 {
		return l
	}
	r := rand.New(rand.NewSource(time.Now().UnixNano()))
	num := r.Intn(l)
	return num
}
